<extend name="Public/base"/>

<block name="body">
	<script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
	<div class="main-title">
		<h2>留言管理</h2>
	</div>

	<div class="cf">
		<button class="btn ajax-post confirm" url="{:U('del')}" target-form="ids">删 除</button>

	</div>

	<div class="data-table table-striped">
		<table>
			<thead>
			<tr>
				<th class="row-selected">
					<input class="checkbox check-all" type="checkbox">
				</th>
				<th>ID</th>

				<th>名字</th>
				<th>电话</th>
				<th>时间</th>
				<th>操作</th>
			</tr>
			</thead>
			<tbody>
			<notempty name="message_data">
				<volist name="message_data" id="val">
					<tr>
						<td><input class="ids row-selected" type="checkbox" name="ids[]"  value="{$val.id}"> </td>
						<td>{$val.id}</td>
						<td>{$val.name}</td>
						<td>{$val.tel}</td>
						<td>{$val.create_time|date="Y-m-d",###}</td>
						<td>
							<a title="详情" href="{:U('edit?id='.$val['id'])}">详情</a>
							<a class="confirm ajax-get" title="删除" href="{:U('del?ids='.$val['id'])}">删除</a>
						</td>
					</tr>
				</volist>
				<else/>
				<td colspan="6" class="text-center"> aOh! 暂时还没有内容! </td>
			</notempty>
			</tbody>
		</table>
	</div>
</block>

<block name="script">
<script type="text/javascript">
	function sousuo(){
		var name=$("input[name='key']").val();
		if(name==''){
			alert("请输入要搜索的姓名");
		}else{

		}
	}
</script>
</block>